# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=8
inherit desktop

DESCRIPTION="Angry Birds Rio"
HOMEPAGE="http://www.angrybirds.com"
SRC_URI="http://fpemud-distfiles.local/httpdir/${PN}.zip"
LICENSE=""
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""
RESTRICT="mirror"

DEPEND="app-arch/unzip"
RDEPEND="virtual/wine[abi_x86_32]"

S=${WORKDIR}

src_unpack() {
	return
}

src_install() {
	unzip "${DISTDIR}/${PN}.zip" -d "${D}"

	dobin "${FILESDIR}/${PN}"

	local res
	for res in 16 32 48 256; do
		newicon -s ${res} "${FILESDIR}/${PN}_${res}x${res}x32.png" "${PN}.png"
	done

	domenu "${FILESDIR}/${PN}.desktop"
}

pkg_extra_files() {
	echo "~/.local/share/angry-birds-rio/***"
}
